package com.example.module_marketers.adapter

import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_marketers.R

class BusinessDetailPhotoAdapter:BaseQuickAdapter<String,BaseViewHolder>(R.layout.layout_business_detail_photo) {
    override fun convert(holder: BaseViewHolder, item: String) {
        Glide.with(context).load(item)
            .apply(RequestOptions.bitmapTransform(RoundedCorners(15)))
            .into(holder.getView(R.id.business_detail_img))
    }
}